package com.sansui.admin.core.model;

import java.io.Serializable;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.sansui.admin.core.groups.RoleUpdate;

import lombok.Data;

@Data
@Table(name = "name")
public class RoleAddModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3582588209589180635L;
	@NotNull(groups = { RoleUpdate.class }, message = "id不能为空")
	private String id;
	@NotNull(groups = { RoleUpdate.class, RoleAddModel.class }, message = "name不能为空")
	private String name;
	private String[] resourcesId;

	public RoleAddModel(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public RoleAddModel() {

	}

}